package com.Ritany3.subject.infra.basic.es;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
@ConfigurationProperties(prefix = "es.cluster")
public class EsConfigProperties {
    private List<EsClusterConfig> esConifgs= new ArrayList<>();
    public List<EsClusterConfig> getEsConfigs(){
        return esConifgs;
    }
    public void setEsConfigs(List<EsClusterConfig> esConifgs){
        this.esConifgs=esConifgs;
    }
}
